package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

import com.qc.common.DateUtil;
import com.qc.common.Util;

public class SecScheduleReplyCommentEntity extends BaseEntity {

	protected long ucrId;
	protected long secCommentId;
	protected long userId;
	protected String ucrContent;
	protected String createdTime;
	
	protected String nickname;//用户昵称
	
	public static SecScheduleReplyCommentEntity getInstance(ResultSet rs) throws SQLException {
		SecScheduleReplyCommentEntity entity = new SecScheduleReplyCommentEntity();
		entity.setUcrId(rs.getLong("ucr_id"));
		entity.setSecCommentId(rs.getLong("sc_id"));
		entity.setUserId(rs.getLong("replyUserId"));
		entity.setUcrContent(rs.getString("ucr_content"));
		
		entity.setCreatedTime(DateUtil.timestampParseString(rs.getTimestamp("scrCreatedTime")));

		entity.setNickname(rs.getString("nickname"));
		return entity;
	}
	
	public long getUcrId() {
		return ucrId;
	}
	public void setUcrId(long ucrId) {
		this.ucrId = ucrId;
	}
	public long getSecCommentId() {
		return secCommentId;
	}
	public void setSecCommentId(long secCommentId) {
		this.secCommentId = secCommentId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getUcrContent() {
		return ucrContent;
	}
	public void setUcrContent(String ucrContent) {
		this.ucrContent = ucrContent;
	}
	public String getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	
	
}
